package com.taotao.wifepojie.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangjin
 * @title: SentinelController
 * @projectName wife-pojie
 * @description: TODO
 * @date 2022/5/27 0027 14:45
 */
@RestController
public class SentinelController {
    @GetMapping("/order/test1")
    @SentinelResource(value = "test1")
    public String test1(int i) throws InterruptedException {
        int b=1/i;
        return "test1 ";
    }
}
